export const data = []
// 加减乘除节点
export const operationNode = {
 id: 'operation',
 type: 'custom-rect',
 x: 750,
 y: 250,
 properties: {
  width: 150,
  height: 100 * 4.5,
  zIndex: 1,
  style: {
   fill: '#ffffff',
   stroke: '#000',
  },
 },
};
const getOperationNode = (x, y, val) => {
 data.push('operation' + val)
 return {
  id: 'operation' + val,
  type: 'custom-rect',
  x: x,
  y: y,
  text: {
   x: x,
   y: y,
   value: val,
   zIndex: 2,
  },
  properties: {
   width: 100,
   height: 80,
   zIndex: 2,
   style: {
    fill: '#ffffff',
    stroke: '#000',
   },
  },
 };
}
export const operationNode1 = getOperationNode(750, 100, "+")
export const operationNode2 = getOperationNode(750, 200, "-")
export const operationNode3 = getOperationNode(750, 300, "*")
export const operationNode4 = getOperationNode(750, 400, "/")
